package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the RAZ_SOC_PJ database table.
 * 
 */
@Entity
@Table(name="RAZ_SOC_PJ")
public class RazSocPj implements Serializable {
	private static final long serialVersionUID = 1L;
	private RazSocPjPK id;
	private String agntSync;
	private String coPais;
	private String estado;
	private String nuFoja;
	private String nuOrigPart;
	private String nuTomo;
	private String razonSoc;
	private String ruc;
	private String siglas;
	private Date tsUltSync;
	private Partida partida;

    public RazSocPj() {
    }


	@EmbeddedId
	public RazSocPjPK getId() {
		return this.id;
	}

	public void setId(RazSocPjPK id) {
		this.id = id;
	}
	

	@Column(name="AGNT_SYNC", length=4)
	public String getAgntSync() {
		return this.agntSync;
	}

	public void setAgntSync(String agntSync) {
		this.agntSync = agntSync;
	}


	@Column(name="CO_PAIS", length=3)
	public String getCoPais() {
		return this.coPais;
	}

	public void setCoPais(String coPais) {
		this.coPais = coPais;
	}


	@Column(nullable=false, length=1)
	public String getEstado() {
		return this.estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}


	@Column(name="NU_FOJA", length=6)
	public String getNuFoja() {
		return this.nuFoja;
	}

	public void setNuFoja(String nuFoja) {
		this.nuFoja = nuFoja;
	}


	@Column(name="NU_ORIG_PART", length=10)
	public String getNuOrigPart() {
		return this.nuOrigPart;
	}

	public void setNuOrigPart(String nuOrigPart) {
		this.nuOrigPart = nuOrigPart;
	}


	@Column(name="NU_TOMO", length=6)
	public String getNuTomo() {
		return this.nuTomo;
	}

	public void setNuTomo(String nuTomo) {
		this.nuTomo = nuTomo;
	}


	@Column(name="RAZON_SOC", nullable=false, length=250)
	public String getRazonSoc() {
		return this.razonSoc;
	}

	public void setRazonSoc(String razonSoc) {
		this.razonSoc = razonSoc;
	}


	@Column(length=11)
	public String getRuc() {
		return this.ruc;
	}

	public void setRuc(String ruc) {
		this.ruc = ruc;
	}


	@Column(length=100)
	public String getSiglas() {
		return this.siglas;
	}

	public void setSiglas(String siglas) {
		this.siglas = siglas;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_SYNC")
	public Date getTsUltSync() {
		return this.tsUltSync;
	}

	public void setTsUltSync(Date tsUltSync) {
		this.tsUltSync = tsUltSync;
	}


	//bi-directional many-to-one association to Partida
    @ManyToOne
	@JoinColumn(name="REFNUM_PART", nullable=false, insertable=false, updatable=false)
	public Partida getPartida() {
		return this.partida;
	}

	public void setPartida(Partida partida) {
		this.partida = partida;
	}
	
}